Automattic\WooCommerce\GoogleListingsAndAds\Coupon\WCCouponAdapter S

Total Complexity 31
Dependencies 9
Dependents 2
Total lines 368
Lines of code 207
Logical lines of code 97
Comment lines 83
Methods 13
Properties 1

Methods 13

Method Rating Maintainability Complexity Lines of code
map_wc_usage_restriction()
A
43 8 54
map_wc_general_attributes()
S
50 3 32
get_wc_coupon_effective_dates()
S
57 3 18
mapTypes()
S
62 3 11
disable_promotion()
S
59 2 16
load_validator_metadata()
S
54 1 30
get_coupon_destinations()
S
67 3 7
map_woocommerce_coupon()
S
62 2 11
get_wc_coupon_start_date()
S
65 2 9
map_wc_coupon_id()
S
72 1 5
map_google_price_amount()
S
68 1 8
get_wc_coupon_id()
S
82 1 3
setTargetCountry()
S
80 1 3